Skip to content

Replace d.get(k, None) calls with d.get(k)#91

Merged
GrandMoff100 merged 2 commits into
HomeAssistant-API:devfrom
johnslavik:dev-bswck
Mar 21, 2022
Merged

Replace d.get(k, None) calls with d.get(k)#91
GrandMoff100 merged 2 commits into
HomeAssistant-API:devfrom
johnslavik:dev-bswck

Conversation

@johnslavik
Copy link
Copy Markdown

A minor redundancy reduction. As self.services in each domain model is a dict, we can assume that None is the default dict.get() default parameter value.

@GrandMoff100
Copy link
Copy Markdown
Collaborator

Whoops. You're right. That is redundant. Thank you!

Copy link
Copy Markdown
Collaborator

@GrandMoff100 GrandMoff100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect.

@GrandMoff100 GrandMoff100 merged commit 640a35b into HomeAssistant-API:dev Mar 21, 2022
@johnslavik johnslavik deleted the dev-bswck branch March 21, 2022 12:12
adamlogan73 pushed a commit that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants